Skip to content

ingest-fixes: route.MediaType; docproc v0.13.0 - #52

Merged
JaimeStill merged 2 commits into
mainfrom
ingest-fixes
Dec 2, 2026
Merged

JaimeStill merged 2 commits into
mainfrom
ingest-fixes

Conversation

@JaimeStill

Copy link
Copy Markdown
Contributor

capstone.data-intelligence.showcase · ingest-fixes · docproc v0.13.0

This release ships ahead of the task's SHIP. The architect approved it at the task's
checkpoint escalation, because docinfer and Bunrei build on the tag.

Summary

  • route.MediaType takes At's inputs and returns the media type of the content as At
    routes it:

    • a kind's type by its signature;
    • within a ZIP, an ODF package, or an OLE2 file, the media type of the name's extension;
    • text/plain, message/rfc822, or application/octet-stream for content with no
      signature.

    It returns an error only when the reader fails.

  • Upgrades:

    • storage, postgres, and cmd/docproc require docproc v0.12.0;
    • cmd/docproc requires go-core v0.15.0;
    • gotenberg 9.11.1, seaweedfs 4.56, mise-action v5.5.0, uv 0.13.12, and claude-plugins 0.26.0;
    • byteorder 1.5.1 and sha2 0.11.3, since 0.11.2 was yanked.

Verify

mise run check: ✓. Slice 1 also ran the picture integration tier against gotenberg 9.11.1, and
the storage and postgres integration tiers. All three passed.

Release: docproc v0.13.0. The sub-modules stay Unreleased.

…go-core v0.15.0, marathon 0.26.0, gotenberg 9.11.1, seaweedfs 4.56, mise-action v5.5.0, uv 0.13.12, byteorder 1.5.1, sha2 0.11.3

Taken with `mise run upgrade`, which moves the root mise pins first and then the
modules under them. Currency now reports only the three holds (MimeKit 5.0.0 and
MsgKit 3.1.0 in tools/mail's generator, typed-path 0.13.0 in tools/onenote), whose
hold comments stay.

- storage, postgres, cmd/docproc: docproc base module v0.12.0, recorded under each
  module's Unreleased; no sub-module tag. integration:storage and
  integration:postgres pass.
- cmd/docproc: go-core v0.15.0, which only adds the event package's JSON codec.
  docproc v0.12.0's settings.Run defaults LibreOfficeMemory to the tool memory
  bound, so the bounds test's starting values carry it and DOCPROC_TOOL_MEMORY moves
  both. LibreOfficeMemory binds only when LibreOfficeExec is set, which docproc run
  leaves unset, so the command's behavior does not change.
- picture.LibreOfficeImage: gotenberg/gotenberg 9.11.1-libreoffice, tag and digest
  moved together; picture's integration tier passes with the golden sums unchanged.
  Recorded under the base module's Unreleased.
- tools/mail, tools/onenote, tools/envelope: byteorder 1.5.1 and sha2 0.11.3 (0.11.2
  is yanked) in the lock files, recorded under mail's and onenote's Unreleased.
- marathon 0.26.0 (root mise.toml; tools/ooxml inherits it), uv 0.13.12
  (tools/ooxml), jdx/mise-action v5.5.0, seaweedfs 4.56: development toolchain and
  harness pins, not recorded, as earlier bumps of them were not.
- route.MediaType(r, size, head, name, mimeType): within a ZIP, an ODF package, or an OLE2
  compound file, the name's extension (by Ext) decides first: OOXML types, the four OpenDocument
  types and application/zip for .zip within a ZIP or ODF, legacy office types through
  LegacyTarget and application/vnd.ms-outlook for .msg within an OLE2 file. Otherwise the Kind's
  table type; content of no signature takes At's route: text/plain for Text, message/rfc822 for
  Nested, application/octet-stream otherwise. It reads r only through At, so only for content of
  no signature, and returns an error only for r's own.
- route.go: the OOXML extension set becomes ooxmlTypes, extension to media type, so
  OOXMLExtension and MediaType read one table.
- Unit tier: route/test/media_test.go covers every Kind, every container extension, the
  text/message/octet-stream fallbacks (by header, .eml, stored type, NUL, stored audio), and a
  reader error.
- route/doc.go inventory and docs/api.md list MediaType. CHANGELOG: Unreleased becomes
  [v0.13.0] - 2026-12-02 with MediaType under Added and the gotenberg bump under Changed, an empty
  Unreleased above, compare links extended; storage, postgres, cmd/docproc stay Unreleased.
  README's go get names v0.13.0. Not tagged.

Decisions:
- The Kind table matches the root's for every kind, including the ones where a type and At's
  route part: an ODF package with no OpenDocument extension is application/zip; an OLE2 file
  without a known extension is application/x-ole-storage; a byte order mark is text/plain even
  when At routes the content Nested; an unencrypted OLE2 file named .docx takes the .docx type
  though At routes it Unrouted, as behavior 4's extension-first rule says.
- OpenDocument extensions are the root's four (.odt, .ods, .odp, .odg); templates and other ODF
  extensions fall to application/zip.

mise run check passes.
@JaimeStill
JaimeStill merged commit 0f337d4 into main Dec 2, 2026
13 checks passed
@JaimeStill
JaimeStill deleted the ingest-fixes branch December 2, 2026 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant